package com.ruoyi.voucher.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.voucher.mapper.TbDetailsMapper;
import com.ruoyi.voucher.domain.TbDetails;
import com.ruoyi.voucher.service.ITbDetailsService;

/**
 * 明细账Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-10
 */
@Service
public class TbDetailsServiceImpl implements ITbDetailsService 
{
    @Autowired
    private TbDetailsMapper tbDetailsMapper;

    /**
     * 查询明细账
     * 
     * @param id 明细账主键
     * @return 明细账
     */
    @Override
    public TbDetails selectTbDetailsById(Long id)
    {
        return tbDetailsMapper.selectTbDetailsById(id);
    }

    /**
     * 查询明细账列表
     * 
     * @param tbDetails 明细账
     * @return 明细账
     */
    @Override
    public List<TbDetails> selectTbDetailsList(TbDetails tbDetails)
    {
        return tbDetailsMapper.selectTbDetailsList(tbDetails);
    }

    /**
     * 新增明细账
     * 
     * @param tbDetails 明细账
     * @return 结果
     */
    @Override
    public int insertTbDetails(TbDetails tbDetails)
    {
        return tbDetailsMapper.insertTbDetails(tbDetails);
    }

    /**
     * 修改明细账
     * 
     * @param tbDetails 明细账
     * @return 结果
     */
    @Override
    public int updateTbDetails(TbDetails tbDetails)
    {
        return tbDetailsMapper.updateTbDetails(tbDetails);
    }

    /**
     * 批量删除明细账
     * 
     * @param ids 需要删除的明细账主键
     * @return 结果
     */
    @Override
    public int deleteTbDetailsByIds(Long[] ids)
    {
        return tbDetailsMapper.deleteTbDetailsByIds(ids);
    }

    /**
     * 删除明细账信息
     * 
     * @param id 明细账主键
     * @return 结果
     */
    @Override
    public int deleteTbDetailsById(Long id)
    {
        return tbDetailsMapper.deleteTbDetailsById(id);
    }

    @Override
    public R deketeList(Integer id) {
        /*进行判断*/
        return null;
    }
}
